package demoTest;

import java.util.Arrays;
import java.util.Scanner;

public class Main4 {

    public static void main(String[] args){

        int count = 0;
        Scanner scc = new Scanner(System.in);
       /* if(scc.hasNextInt()){
            count = scc.nextInt();
        }*/

        int[] intArray = null;
        while(scc.hasNextInt()){

            if(scc.hasNextInt()){
                intArray = new int[scc.nextInt()];
            }
            while(scc.hasNext()){
                for (int j = 0; j < intArray.length; j++) {
                    intArray[j] =  scc.nextInt();
                }
                break;
            }
            System.out.println(sum(intArray));
        }
    }


    public static int sum(int[] intArray){
        return Arrays.stream(intArray).sum();
    }
}
